package com.api.main.mvc.dao.pojo;

import com.api.main.mvc.dao.pojo.table.OrgUser;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tangzc.mpe.actable.annotation.Column;
import com.tangzc.mpe.actable.annotation.Index;
import com.tangzc.mpe.actable.annotation.IsKey;
import com.tangzc.mpe.actable.annotation.Table;
import com.tangzc.mpe.actable.annotation.constants.MySqlTypeConstant;
import lombok.Data;

@Data
@Table(value = OrgUser.TABLE_NAME, comment = "用户信息表")
@TableName(value = OrgUser.TABLE_NAME)
public class OrgUserDO {

    @IsKey
    @TableId(value = OrgUser.TABLE_KEY)
    @Column(comment = "主键", type = MySqlTypeConstant.BIGINT, length = 20)
    private Long userId;

    @Index
    @Column(comment = "用户名称", type = MySqlTypeConstant.VARCHAR, length = 64)
    @TableField(value = OrgUser.TABLE_FIELD_USER_NAME)
    private String userName;

    @Column(comment = "用户密码", type = MySqlTypeConstant.VARCHAR, length = 64)
    @TableField(value = OrgUser.TABLE_FIELD_PASSWORD)
    private String password;
}